#include "ServoMotor.h"
#include "PwmManager.h"

void spin(FILE* pinFile, float angle)
{
	int interval = 1500;
	interval += (angle * 10);
	
	if( interval > 2400 )
	{
		interval = 2400;
	}
	else if( interval < 600 )
	{
		interval = 600;
	}
	
	pwmWrite(pinFile, interval, 50);
}
